# -*- encoding=utf8 -*-
__author__ = "Bryan.Chen"

from airtest.core.api import *

auto_setup(__file__)

using("../FlowTest.air")
import FlowTest

testCases = [
    {"moduleName": "Login_WechatLogin", "args": {}},
    {"moduleName": "Login_PopUpActivity", "args": {}},
    {"moduleName": "Login_Guide", "args": {}},
    {"moduleName": "Login_BindPhone", "args": {}},
    {"moduleName": "Login_Questionnaire", "args": {}},
    {"moduleName": "Login_SignIn", "args": {}},

    {"moduleName": "SideMenu_Recommend", "args": {"agentNum": [7,4,5,1,9,9]}},
    {"moduleName": "SideMenu_Certification", "args": {"name": "仇楚云", "id": "450881199412087728"}},
    {"moduleName": "SideMenu_Honor", "args": {}},
    {"moduleName": "SideMenu_Agent", "args": {}},
    {"moduleName": "SideMenu_Mail", "args": {}},
    {"moduleName": "SideMenu_Annoucement", "args": {}},
    {"moduleName": "SideMenu_CityNews", "args": {}},
    {"moduleName": "SideMenu_Share", "args": {}},
    {"moduleName": "SideMenu_Feedback", "args": {"phoneNum": "13800138000", "problemContent": "来自自动化测试的反馈，请忽视"}},
    {"moduleName": "SideMenu_Setting", "args": {}},
]

FlowTest.runTestWithRestart(testCases)